dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBCommandBuilder Class / GetDeleteCommand Method / GetDeleteCommand(String[],Boolean) Method

On this page
    GetDeleteCommand(String[],Boolean) Method
    On this page
    Returns the generated command that deletes a row. The document is found by its "_id" field: in the native mode always, in the SQL engine mode when the select command returns the "_id" column. Throws System.InvalidOperationException if the data adapter has no select command.
    Syntax
    'Declaration
     
    Public Overloads Function GetDeleteCommand( _
       ByVal fields() As String, _
       ByVal useColumnsForParameterNames As Boolean _
    ) As MongoDBCommand
    public MongoDBCommand GetDeleteCommand( 
       string[] fields,
       bool useColumnsForParameterNames
    )

    Parameters

    fields
    useColumnsForParameterNames
    See Also